<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作用域链</title>
</head>
<body>
<script>
    var content = 'global';
    function out() {
        var content = 'funcion';
        return function () {
            console.log(content);
        }
    }
    out()();

    var f = out();
    f();
</script>
</body>
</html>
